﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LotteryVote.Logic.Exceptions
{
    public class InvalidGivenCreditException : Exception
    {
        public decimal AvailableGivenCredit { get; set; }
        public decimal GivenCredit { get; set; }

        public InvalidGivenCreditException(decimal avalidableGivenCredit, decimal givenCredit)
            : base("无效信用额")
        {
            this.AvailableGivenCredit = avalidableGivenCredit;
            this.GivenCredit = givenCredit;
        }

        public InvalidGivenCreditException(decimal avalidableGivenCredit, decimal givenCredit, Exception innerException)
            : base("无效信用额", innerException)
        {
            this.AvailableGivenCredit = avalidableGivenCredit;
            this.GivenCredit = givenCredit;
        }
    }
}
